<?php 
/*
** etc: index.php 项目程序入口
** author: deepe.xiao
** update : 2018-10-08
*/


//error_reporting level

error_reporting( E_ALL );//报告所有错误
//error_reporting( 0 );//禁用错误报告

$core_path = dirname(__FILE__) . '/core';

if (realpath($core_path) !== FALSE){
	$core_path = realpath($core_path).'/';
}

$core_path = rtrim($core_path, '/').'/';

if ( ! is_dir($core_path)){
	exit("core file not exists ".pathinfo(__FILE__, PATHINFO_BASENAME));
}

define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
define('BASEPATH', str_replace("\\", "/", $core_path));
define('FCPATH', str_replace("\\", "/", str_replace(SELF, '', __FILE__)));

include FCPATH.'app/config/config.php';
include_once BASEPATH.'deepe.init.php';

?>
